<template>
  <div id="ServiceDetail" class="service-detail-page">
    <!-- 重定向提示或者显示详细内容 -->
    <div class="redirect-notice">
      <div class="notice-content">
        <div class="notice-icon">
          <i class="glyphicon glyphicon-info-sign"></i>
        </div>
        <h2>页面已更新</h2>
        <p>我们已经重新设计了服务页面，为您提供更好的浏览体验。</p>
        <div class="notice-actions">
          <router-link to="/service" class="btn-primary">前往新服务页面</router-link>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup name="serviceDetail">
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()

// 自动重定向到新的服务页面
onMounted(() => {
  // 可以添加一个延迟后自动跳转
  setTimeout(() => {
    router.push('/service')
  }, 3000) // 3秒后自动跳转
})
</script>

<style scoped>
/* 苹果风格重定向页面 */
.service-detail-page {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.redirect-notice {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
}

.notice-content {
  padding: 60px 40px;
  text-align: center;
}

.notice-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.notice-icon i {
  font-size: 32px;
  color: #ffffff;
}

.notice-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.notice-content p {
  font-size: 19px;
  font-weight: 400;
  color: #86868b;
  line-height: 1.47;
  letter-spacing: -0.01em;
  margin: 0 0 40px 0;
}

.notice-actions {
  display: flex;
  justify-content: center;
}

.btn-primary {
  padding: 16px 32px;
  background: #0071e3;
  color: #ffffff;
  border: 2px solid #0071e3;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.btn-primary:hover {
  background: #0077ed;
  border-color: #0077ed;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.4);
  text-decoration: none;
  color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .notice-content {
    padding: 40px 24px;
  }
  
  .notice-content h2 {
    font-size: 28px;
  }
  
  .notice-content p {
    font-size: 17px;
  }
  
  .btn-primary {
    width: 100%;
    max-width: 280px;
  }
}
</style>
